﻿@model RegisterResultModel
@inject IPageHeadBuilder pagebuilder
@{
    Layout = "_SingleColumn";

    //title
    pagebuilder.AddTitleParts(Loc["Title.Register"]);

    //continue URL
    var qs = Context.Request.Query["ReturnUrl"];
    var continueUrl = "";
    if (!string.IsNullOrEmpty(qs) && Url.IsLocalUrl(qs))
    {
        continueUrl = qs;
    }
    else
    {
        continueUrl = Url.RouteUrl("HomePage");
    }
}
<div class="page registration-result-page text-center">
    <h1 class="generalTitle h2 text-center">@Loc["Account.Register"]</h1>
    <section class="result alert alert-info my-3">
        @Model.Result
    </section>
    <div class="buttons generalMarginSupporter">
        <button class="btn btn-secondary register-continue-button" onclick="location.href='@continueUrl'">
            @Loc["Account.Register.Result.Continue"]
        </button>
    </div>
</div>